package top.aicey.ai.sparring.dto.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum SceneStatusEnum {

    DRAFT(0),
    RELEASE(1),
            ;


    private final Integer value;


    public static SceneStatusEnum getEnumByValue(Integer value){
        for (SceneStatusEnum statusEnum : values()) {
            if (statusEnum.getValue().equals(value)){
                return statusEnum;
            }
        }
        return null;
    }
}
